﻿using Masa.BuildingBlocks.ReadWriteSplitting.Cqrs.Queries;
using Masa.CqrsProject.Models;

namespace Masa.CqrsProject.Querys
{

    /// <summary>
    /// 查询订单信息
    /// </summary>
    public record GetOrderInfoQuery : Query<OrderInfo>
    {
        /// <summary>
        /// 入参：订单Id
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 出参：订单信息
        /// </summary>
        public override OrderInfo Result { get; set; }
         
    }

    /// <summary>
    /// 查询订单列表
    /// </summary>
    public record GetOrderListQuery:Query<List<OrderInfo>>
    {

        public string Where { get; set; }   

        /// <summary>
        /// 出参：订单信息列表
        /// </summary>
        public override List<OrderInfo> Result { get; set; }
    }
}
